<%--
  Created by IntelliJ IDEA.
  User: 22531
  Date: 2021/5/24
  Time: 16:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <meta charset="utf-8"/>
    <script type="text/javascript" src="/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/easyui/jquery.easyui.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/easyui/themes/icon.css">
    <script src="/easyui/locale/easyui-lang-zh_CN.js"></script>
 <%--   <style>
        div
        {
            white-space:normal;
            word-break:break-all;
            word-wrap:break-word;
        }
    </style>--%>
<%--<script type="text/javascript">
   $(function () {
        $("#test").load('news/'+'${param.url}'+'.txt');
    })
</script>--%>
    <script type="text/javascript">

        $(function () {
            $("#test").load('getNewsById?id=${param.id}',function(data){
                var data = eval('(' + data + ')');
                $("#test").text(data.content);
            });
        })
    </script>
</head>
<body>
<div style="width: 80%;height:100%;background-color: #fff3f3;margin: 0 auto">
    <h2 id="title" style="text-align: center" >${param.title}</h2>
    <div id="test">
    </div>
</div>

</body>
</html>
